package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 日报实体类
 * @Author  zhangxiaojia
 * @Date 2020-06-19
 */

@Data
@TableName ("tb_report_user" )
public class TbReportUser implements Serializable {

	private static final long serialVersionUID =  8124224993774372736L;

	/**
	 * 主键
	 */
	@TableId(value="id")
	@ApiModelProperty
	private Long id;

   	@TableField("report_id" )
	private Long reportId;

	@TableField("user_id" )
   	private Long userId;

	@TableField("is_read" )
	private Integer isRead;

	/**
	 * 创建时间
	 */
	@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
	@ApiModelProperty(hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
	@ApiModelProperty(hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;

	@TableField(exist = false)
	private String userName;

}
